//
//(C) Copyright 2011 HongKong Airline.,Ltd. 
//
/**
 * consumeHistoryModel
 *
 * 项目名称:代购系统
 *
 * @author Mengxiangliang
 *
 * 功能描述:
 * 
 * 历史版本:2013-01-04 v1.0.0 Mengxiangliang  创建:
 * 
 */
package com.gamutsoft.amb.consumehistory.model;

import java.math.BigDecimal;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "CONSUME_HISTORY")
public class ConsumeHistory implements java.io.Serializable {

	/**
	 * 
	 */
	private Long id ;
	/**
	 * 
	 */
	private Long accountId ;
	/**
	 * 
	 */
	private String consumeTime ;
	/**
	 * 
	 */
	private BigDecimal consumeAmount ;
	/**
	 * 
	 */
	private String consumeType ;
	/**
	 * 
	 */
	private Long consumeId ;
	/**
	 * 
	 */
	private BigDecimal accountPayAmount ;
	/**
	 * 
	 */
	private BigDecimal otherPayAmount ;

/** default constructor */
	public ConsumeHistory() {
	}

	/** minimal constructor */
   public ConsumeHistory(Long id) {
             this.id = id;
                                                	
 } 
	

    /**
	 * 获取
	 * @return
	 */
    @Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	@Column(name = "id", unique = true, nullable = false, scale = 0)
	public Long getId() {
		return this.id;
	}
	
	/**
	 * 设置
	 * @param id
	 */	
	public void setId(Long id) {
		this.id = id;
	}

    /**
	 * 获取
	 * @return
	 */
	@Column(name = "account_id", length = 32)
	public Long getAccountId() {
		return accountId;
	}
	
	/**
	 * 设置
	 * @param accountId
	 */	
	public void setAccountId(Long accountId) {
		this.accountId = accountId;
	}

    /**
	 * 获取
	 * @return
	 */
	@Column(name = "consume_time", length = 19)
	public String getConsumeTime() {
		return consumeTime;
	}
	
	/**
	 * 设置
	 * @param consumeTime
	 */	
	public void setConsumeTime(String consumeTime) {
		this.consumeTime = consumeTime;
	}

    /**
	 * 获取
	 * @return
	 */
	@Column(name = "consume_amount", length = 10)
	public BigDecimal getConsumeAmount() {
		return consumeAmount;
	}
	
	/**
	 * 设置
	 * @param consumeAmount
	 */	
	public void setConsumeAmount(BigDecimal consumeAmount) {
		this.consumeAmount = consumeAmount;
	}

    /**
	 * 获取
	 * @return
	 */
	@Column(name = "consume_type", length = 3)
	public String getConsumeType() {
		return consumeType;
	}
	
	/**
	 * 设置
	 * @param consumeType
	 */	
	public void setConsumeType(String consumeType) {
		this.consumeType = consumeType;
	}

    /**
	 * 获取
	 * @return
	 */
	@Column(name = "consume_id", length = 32)
	public Long getConsumeId() {
		return consumeId;
	}
	
	/**
	 * 设置
	 * @param consumeId
	 */	
	public void setConsumeId(Long consumeId) {
		this.consumeId = consumeId;
	}

    /**
	 * 获取
	 * @return
	 */
	@Column(name = "account_pay_amount", length = 10)
	public BigDecimal getAccountPayAmount() {
		return accountPayAmount;
	}
	
	/**
	 * 设置
	 * @param accountPayAmount
	 */	
	public void setAccountPayAmount(BigDecimal accountPayAmount) {
		this.accountPayAmount = accountPayAmount;
	}

    /**
	 * 获取
	 * @return
	 */
	@Column(name = "other_pay_amount", length =10 )
	public BigDecimal getOtherPayAmount() {
		return otherPayAmount;
	}
	
	/**
	 * 设置
	 * @param otherPayAmount
	 */	
	public void setOtherPayAmount(BigDecimal otherPayAmount) {
		this.otherPayAmount = otherPayAmount;
	}
}